package com.zyf.system.controller.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author 张云帆
 * 2025/3/25 13:57
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class BasePageDto {
    @ApiModelProperty(value = "当前页码", required = true, example = "1")
    @Min(value = 1, message = "当前页码必须大于等于1")

    @NotNull
    private int pageNum;

    @ApiModelProperty(value = "页面容量", required = true,example = "10")
    @Min(value = 5, message = "页面容量必须大于等于5")
    @NotNull
    private int pageSize;

    @ApiModelProperty(value = "是否不可用", required = true,example = "false")
    private Boolean isDeleted;
}
